import request from '@/utils/request'

// 索引列表
export function repertory_list(data) {
    return request({
        url: '/system/index/list',
        method: 'get',
        params: data
    })
}
// 索引字段列表  删除 支持批量   编辑
export function repertory_column_list(data) {
    return request({
        url: '/system/index/column/list',
        method: 'get',
        params: data
    })
}
// 索引字段删除
export function repertory_column_remove(data) {
    return request({
        url: '/system/index/column/remove',
        method: 'post',
        data: data
    })
}
// 索引字段新增
export function repertory_column_add(data) {
    return request({
        url: '/system/index/column/add',
        method: 'post',
        data: data
    })
}
// 索引字段编辑
export function repertory_column_edit(data) {
    return request({
        url: '/system/index/column/edit',
        method: 'post',
        data: data
    })
}
// 索引字段类型
export function repertory_column_datatypeList(data) {
    return request({
        url: '/system/index/column/datatypeList',
        method: 'get',
        params: data
    })
}
// 索引详情列表
export function repertory_detail_list(data) {
    return request({
        url: '/system/index/detail/list',
        method: 'get',
        params: data
    })
}
// 索引详情删除
export function repertory_detail_remove(data) {
    return request({
        url: '/system/index/detail/remove',
        method: 'post',
        data: data
    })
}
export function repertory_detail_close(data) {
    return request({
        url: '/system/index/detail/close',
        method: 'post',
        data: data
    })
}

export function syncFiledsByIndexPrix(data) {
    return request({
        url: '/system/index/syncFiledsByIndexPrix',
        method: 'post',
        timeout: 1800000,
        data: data,
    })
}
